package org.sys.transporttrainsys.repository;

import org.sys.transporttrainsys.entity.Consultation;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ConsultationRepository extends JpaRepository<Consultation, Long> {
    List<Consultation> findByTitle(String title);
    List<Consultation> findByStatus(String status);
    List<Consultation> findByTitleAndStatus(String title, String status);
}